#ifndef __NJGIS_NJFORMPARAM_H__
#define __NJGIS_NJFORMPARAM_H__

#include <map>
#include "../include/INxFormParam.h"

namespace NJGIS
{
	namespace SERVICE
	{
		class NjFormParam : public virtual INjFormParam
		{
		public:
			virtual int getCount();

			virtual const char* getKey( int index );

			virtual const char* getValue( int index );

			virtual const char* getValue( const char* key );

			virtual int insertParam( const char* key, const char* value );

		private:
			virtual int getIterByIndex(int index, std::map<std::string, std::string>::iterator &iter);

		private:
			std::map<std::string, std::string> _mParams;

		};

		class NjFormHelper
		{
		public:
			static INjFormParam* createForm();
		};
	}
}

#endif